package com.lilicould.service;

import com.lilicould.entity.ContractApartment;
import com.lilicould.entity.ContractDetails;
import com.lilicould.entity.ContractTenant;
import com.lilicould.entity.LeaseContract;

import java.util.ArrayList;

public interface ContractService {
    // 添加合同
    boolean addContract(LeaseContract leaseContract, ContractApartment contractApartment, ContractTenant contractTenant);

    // 查询所有合同信息
    ArrayList<ContractDetails> selectAllContractDetails();

    // 判断该员工是否是该楼栋的负责人
    boolean isYours(String employeeId, String buildingId);

    // 查询此公寓是否已存在合同
    String isLeased(String buildingId, String apartmentNo);

    // 添加租户到合同
    boolean addContractTenant(ContractTenant contractTenant);

    // 通过合同编号删除合同
    boolean deleteContract(String contractId);

    // 更新合同信息
    boolean updateContract(LeaseContract leaseContract);
}
